import request from '@/utils/request'
// 员工名字
export function getEmployeeSimple(page, pagesize) {
  return request({
    url: '/sys/role',
    method: 'get',
    params: { page, pagesize }
  })
}
// 删除函数
export function deletEmployeeSimple(id) {
  return request({
    url: `/sys/role/${id}`,
    method: 'DELETE'
  })
}
// 新增
export function AddEmployeeSimple(data) {
  return request({
    url: '/sys/role',
    method: 'POST',
    data
  })
}
// 编辑
export function EditoyeeSimple(data) {
  return request({
    url: `/sys/role/${data.id}`,
    method: ' PUT'
  })
}
